<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('group', $groupdata, null, ['class'=>'form-control selectpicker','name'=>'row[level]','data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="uid" class="control-label col-xs-12 col-sm-2">{:__('用户id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="uid" name="row[uid]" value="" data-rule="required;uid" />
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('省市区镇')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area,town">
                <select class="province form-control" name="row[province_id]" data-url="retail/partner/cxselect?area_code=0"></select>
                <select class="city form-control" name="row[city_id]" data-query-name="area_code" data-url="retail/partner/cxselect"></select>
                <select class="area form-control" name="row[area_id]" data-query-name="area_code" data-url="retail/partner/cxselect"></select>
                <select class="town form-control" name="row[town_id]" data-query-name="area_code" data-url="retail/partner/cxselect"></select>
            </div>
        </div>
    </div>
    
    <div class="form-group">
        <label for="ys_conf" class="control-label col-xs-12 col-sm-2">{:__('原始股配置')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="ys_conf" class="form-control" id="ys_conf" name="row[ys_conf]" value="" placeholder="不填写就默认配置" data-rule="" />
        </div>
    </div>

    <div class="form-group">
        <label for="jd_conf" class="control-label col-xs-12 col-sm-2">{:__('季度分红')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="jd_conf" name="row[jd_conf]" autocomplete="off"  placeholder="不填写就默认配置" value="" data-rule="" />
        </div>
    </div>
    <div class="form-group">
        <label for="cs_conf" class="control-label col-xs-12 col-sm-2">{:__('城市加权配置')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="cs_conf" class="form-control" id="cs_conf" name="row[cs_conf]" autocomplete="new-cs_conf"  placeholder="不填写就默认配置" value="" data-rule="" />
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>